package com.dhecp.project.storage.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.dhecp.core.genericDao.GenericDao;
import com.dhecp.project.storage.domain.StockOpe;

public interface StockOpeMapper extends GenericDao<StockOpe, String> {
	
	int insert(StockOpe entity);

	/**
     * 查询实体
     * @author Jason
	 */
	List<StockOpe> findStockOpe(Map<String, Object> params);

	/**
     * 查询数量，通过BID
     * @author Jason
	 */
	Integer countByBid(@Param("bid")String bid);

	/**
     * 获取最新一条BID
     * @author Jason
	 */
	String getLatestBid();
}
